package cn.liujianbo.example.validate.listener;

import cn.liujianbo.example.validate.listener.event.MyEvent;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author 刘建波
 * @date 2021-09-08 17:10
 */
@Component
public class TestMyEventListener implements ApplicationListener<MyEvent> {
    @Override
    public void onApplicationEvent(MyEvent myEvent) {
        System.out.println(myEvent.getMsg());
    }
}
